"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.hashObject = hashObject;

var _hashString = require("./hash-string");

function hashObject(obj) {
  if (obj.prototype) {
    throw new RangeError('Can only hash a plain object');
  }

  return (0, _hashString.hashString)(JSON.stringify(obj));
}